<!DOCTYPE html>
<html>
<head>
    <title>个人数据侵权损害赔偿智能预测系统</title>
    <style>
        body { margin:0; padding:0; height:100vh; }
        .container { 
            display: grid;
            grid-template-columns: 200px 1fr;
            grid-template-rows: 60px 1fr;
            height: 100vh;
        }
        
        /* 左侧区域 */
        .left-side {
            grid-row: 1 / 3;
            border-right: 2px solid #e3e6f0;
            display: flex;
            flex-direction: column;
            background: #fff;
        }
        
        .left-side iframe:first-child {
            height: 100px;
            border-bottom: 1px solid #e3e6f0;
        }
        
        .left-side iframe:last-child {
            flex: 1;
        }
        
        /* 右上区域样式 */
        .right-top {
            display: flex;
            justify-content: space-between;
            align-items: center;
            height: 60px;
            background: #fff;
            border-bottom: 2px solid #e3e6f0;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        }
        
        .right-top-left {
            flex: 1;
            height: 100%;
            border-right: 1px solid #e3e6f0;
        }
        
        .right-top-right {
            width: 200px;
            height: 100%;
        }
        
        /* 内容区域样式 */
        #contentFrame {
            background: #f8f9fc;
            box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
        }
        
        .right-top iframe {
            height: 100%;
            width: 100%;
        }
        
        iframe {
            width: 100%;
            border: none;
        }
    </style>
</head>
<body>
    <div class="container">
        <!-- 左侧顶部 -->
        <div class="left-side">
            <iframe src="left-top.html"></iframe>
            <iframe src="left-bottom.html"></iframe>
        </div>

        <!-- 右侧顶部 -->
        <div class="right-top">
            <div class="right-top-left">
                <iframe src="right-top-left.html" frameborder="0"></iframe>
            </div>
            <div class="right-top-right">
                <iframe src="right-top-right.html" frameborder="0" style="width: 100%; height: 100%;"></iframe>
            </div>
        </div>

        <!-- 内容区域 -->
        <iframe id="contentFrame" src="./content/content-dashboard.html" style="width: 100%; height: 100%; overflow: auto;"></iframe>
    </div>

    <!-- 在 <script> 标签内的最前面添加以下代码 -->
    <script>
        // 检查登录状态
        if(localStorage.getItem('isLoggedIn') !== 'true') {
            window.location.href = 'login.html';
        }
        
        // 接收来自菜单的页面切换请求
        window.addEventListener('message', function(e) {
            if(e.data.type === 'navigate') {
                // 更新内容区域的 src
                document.getElementById('contentFrame').src = './content/' + e.data.url;
            }
        });
    </script>
</body>
</html>